package lastcontrnt.jprofile;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: fxy
 * @Date: 2025/4/23 19:25
 * @Description:
 */
public class JprofileOomTest {
    public static List staticList = new ArrayList();

    public static void main(String[] args) {
        while (true) {
            List list = new ArrayList();
            List list1 = new ArrayList();
            for (int i = 0; i < 500; i++) {
                JprofileOomTest jprofileOomTest = new JprofileOomTest();
                list.add(jprofileOomTest);
                jprofileOomTest.staticList.add(new byte[1024 * 10 * 1]);
                list1.add(new byte[1024 * 10 * 1]);

            }
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
